From 281ce813fcd28ba1adc3ffb7b0f91ae2ce87b959 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 11 Jun 2011 02:12:35 +0200 Subject: [PATCH] reftests: Add background-area reftest Checks the fix from last commit: background area is supposed to be the border box. --- tests/reftests/Makefile.am | 3 +++ tests/reftests/background-area.css | 19 +++++++++++++++++++ tests/reftests/background-area.ref.ui | 19 +++++++++++++++++++ tests/reftests/background-area.ui | 18 ++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 tests/reftests/background-area.css create mode 100644 tests/reftests/background-area.ref.ui create mode 100644 tests/reftests/background-area.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 5eebd6e8b3..2dccc4f5bb 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -26,6 +26,9 @@ clean-local: EXTRA_DIST += \ align-expand.sh \ + background-area.css \ + background-area.ref.ui \ + background-area.ui \ border-image-ball-green.png \ border-image-ball-red.png \ border-image-ball-yellow.png \ diff --git a/tests/reftests/background-area.css b/tests/reftests/background-area.css new file mode 100644 index 0000000000..d5a7f372c0 --- /dev/null +++ b/tests/reftests/background-area.css @@ -0,0 +1,19 @@ +* { + engine: none; + border-radius: 0; + border-style: none; + border-image: none; + background-image: none; +} + +GtkButton { + background-color: green; + border-style: solid; + border-color: rgba(255,0,0,0.6); + border-width: 4; +} + +#reference { + border-color: rgb(153,102,0); +} + diff --git a/tests/reftests/background-area.ref.ui b/tests/reftests/background-area.ref.ui new file mode 100644 index 0000000000..1643a51e84 --- /dev/null +++ b/tests/reftests/background-area.ref.ui @@ -0,0 +1,19 @@ + + + + + False + popup + + + reference + Make sure that the background +area contains the border. + True + True + True + False + + + + diff --git a/tests/reftests/background-area.ui b/tests/reftests/background-area.ui new file mode 100644 index 0000000000..a1861704f9 --- /dev/null +++ b/tests/reftests/background-area.ui @@ -0,0 +1,18 @@ + + + + + False + popup + + + Make sure that the background +area contains the border. + True + True + True + False + + + + -- 2.30.2